package com.mengxuegu.springcloud.mapper;

import com.mengxuegu.springcloud.entities.Product;

import java.util.List;

/**
 * @author william
 * @create 2021-06-21 21:12
 **/
//@Mapper//或者在启动类用@MapperScan 标识 否则每个mapper 都要用@Mapper标识
public interface ProductMapper {
    Product findById(Long pid);

    List<Product> findAll();

    boolean addProduct(Product product);
}
